﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:XDCCManager_Popups="clr-namespace:XDCCManager.Popups"
	xmlns:XDCCManager_Controls="clr-namespace:XDCCManager.Controls">
	<!-- Resource dictionary entries should be defined here. -->
	<Style TargetType="{x:Type Button}">
		<Setter Property="MinWidth" Value="50" />
    </Style>
	<SolidColorBrush x:Key="PopupMaskBrush" Color="#7F000000"/>

	<Style TargetType="{x:Type XDCCManager_Popups:ServerEditor}">
		<Setter Property="Template">
			<Setter.Value>
			    <ControlTemplate TargetType="{x:Type XDCCManager_Popups:ServerEditor}">
    				<Grid Background="{DynamicResource PopupMaskBrush}">
    					<Grid.ColumnDefinitions>
    						<ColumnDefinition Width="33*"/>
    						<ColumnDefinition MinWidth="300" Width="34*"/>
    						<ColumnDefinition Width="33*"/>
    					</Grid.ColumnDefinitions>
    					<Border VerticalAlignment="Center" BorderThickness="1" Grid.Column="1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
    						<ContentPresenter />
    					</Border>
    				</Grid>
    			</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
		<Setter Property="Visibility" Value="Collapsed"/>
	</Style>

	<Style TargetType="{x:Type XDCCManager_Popups:PackEditor}">
		<Setter Property="Visibility" Value="Collapsed"/>
		<Setter Property="Template">
			<Setter.Value>
			    <ControlTemplate TargetType="{x:Type XDCCManager_Popups:PackEditor}">
    				<Grid Background="{DynamicResource PopupMaskBrush}">
    					<Grid.ColumnDefinitions>
    						<ColumnDefinition Width="33*"/>
    						<ColumnDefinition MinWidth="260" Width="34*"/>
    						<ColumnDefinition Width="33*"/>
    					</Grid.ColumnDefinitions>
    					<Border VerticalAlignment="Center" BorderThickness="1" Grid.Column="1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
    						<ContentPresenter />
    					</Border>
    				</Grid>
    			</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
	</Style>

	<Style TargetType="{x:Type XDCCManager_Popups:ConnectionProgress}">
		<Setter Property="Visibility" Value="Collapsed"/>
		<Setter Property="Template">
			<Setter.Value>
			    <ControlTemplate TargetType="{x:Type XDCCManager_Popups:ConnectionProgress}">
    				<Grid Background="{DynamicResource PopupMaskBrush}">
    					<Grid.ColumnDefinitions>
    						<ColumnDefinition Width="*"/>
    						<ColumnDefinition Width="Auto"/>
    						<ColumnDefinition Width="*"/>
    					</Grid.ColumnDefinitions>
    					<Border VerticalAlignment="Center" BorderThickness="1" Grid.Column="1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
    						<ContentPresenter />
    					</Border>
    				</Grid>
    			</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
	</Style>

	<Style TargetType="{x:Type XDCCManager_Controls:LoadingAnimation}">
		<Setter Property="AnimationBackground" Value="{DynamicResource {x:Static SystemColors.WindowColorKey}}"/>
		<Setter Property="AnimationForeground" Value="{DynamicResource {x:Static SystemColors.HighlightColorKey}}"/>
		<Setter Property="AnimationRingWidth" Value="6"/>
	</Style>
</ResourceDictionary>